package src.com.atguigu06.project.team.domain;
import src.com.atguigu06.project.team.service.Status;

/**
 * ClassName: Programmer
 * Package: src.com.atguigu06.project.team.domain
 * Description:
 *
 * @Author BuTang
 * @Create 2023/5/5 20:33
 * @Version 1.0
 */
public class Programmer extends Employee{
    private int memberId;
    private Status status = Status.FREE;
    private Equipment equipment;
    public Programmer() {
    }

    public Programmer(int id, String name, int age , double salary, Equipment equipment) {
//        this.setId(id);
//        this.setName(name);
//        this.setAge(age);
//        this.setSalary(salary);
        super(id, name, age, salary);
//        this.equipment = equipment;
        this.equipment = equipment;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberld(int memberld) {
        this.memberId = memberld;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
//        this.equipment = equipment;
    }



    protected String getMemberDetails() {
        return getMemberId() + "/" + getDetails();
    }

    public String getDetailsForTeam() {
        return getMemberDetails() + "\t程序员";
    }

    @Override
    public String toString() {
        return getDetails() + "\t程序员\t" + status + "\t\t\t\t\t" + equipment.getDescription() ;
    }
}
